package com.sdgs.paas.sdk.core.log;

import org.springframework.boot.autoconfigure.condition.ConditionalOnClass;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;


/**
 * 日志功能自动配置
 *
 * @author wjj
 *
 */
@Configuration
@ConditionalOnClass({ PaasLogBuilder.class })
public class PaasLogAutoConfiguration   {


	@Bean
	public PaasLogBuilder paasLogBuilder(ApplicationContext applicationContext) {

		PaasLogBuilder paasLogBuilder = new PaasLogBuilder();
		PaasLogger.setBulider(paasLogBuilder);
		PaasLogger.info("PaasLogBuilder创建成功!");

		return paasLogBuilder;
	}

}
